<div class="bh-content ttc-index"><div class='ttc-index-inner'>
	<div class='ttc-part part1'>
		<div class='ttc-cate-w'>
			<h1 class='ttc-title'>土特产分类</h1>
			<?php $this->widget('lib.ext.data.DataWidget',array(
				'model' => 'GoodsType',
				'criteria' => array(
					'condition' => 'layer = 1',
					'limit' => 7
				),
				'view' => 'application.views.partials.platform.native.category',
			))?>
		</div>
		
		<div class='ttc-part1-right'>
			<?php $form = $this->beginWidget('lib.widgets.CActiveFormAdv',array(
				'action' => $this->createUrl('nativeList'),
				'method' => 'get'
			));?>
			<div class='ttc-is-w'>
				<div class='bh-fl'>
					<?php echo $form->textField(new Native(),'title',array(
						'id'=>'native-name',
						'init-value' => '请输入您所要查找的土特产关键字'
					))?><input type='button' value='搜 索' onclick="$('#<?php echo $form->id?>').submit()"/>
				</div>
				<p class='bh-fl font-body'>
					<?php foreach (HotWord::model()->findAllByAttributes(array('type_id'=>HotWord::TYPE_NATIVE),array('limit'=>3,'order'=>'`desc` desc')) as $key=>$one):?>
					<a href='<?php echo $one->url?>'><?php echo $one->title?></a> <?php if($key <= 1) echo '|'?>
					<?php endforeach;?>
					&nbsp;
				</p>
				<div class='bh-clear'></div>
			</div>
			<script>bindTextInit($('#native-name'),$('#<?php echo $form->id?>'));</script>
			<?php $this->endWidget()?>
			<div class='ttc-slider-w'>
				<?php $this->widget('Sildeable', array(
					'items' => SildeShowService::getInstance()->getData('native_p'),
					'width' => '725px',
					'height' => '340px',
					'direction' => 'left',
					'htmlOptions' => array('class'=>' bh-fl ttc-slider'),
				));?>
			</div>
			<div class='bh-clear'></div>
			<div class='ttc-r-w'>
					<?php $this->widget('lib.ext.data.DataWidget',array(
						'model' => 'Ad',
						'criteria' => array(
							'condition' => 'type = :type',
						 	'params' => array(
						 		':type' => Ad::TYPE_M_NATIVE_C
						 	),
						 	'limit' => 5
						),
						'view' => 'application.views.partials.ad.native_ad',
					))?>
			</div>
		</div>
		<div class='bh-clear'></div>
	</div>
	
	
	<div class='ttc-part part2'>
		<div class='ttc-part2-left bh-fl'>
			<div class='ttc-hot ttc-left-box'>
				<div class='ttc-hot-title'>
					<ul id='trigger-native'>
						<?php $this->widget('lib.ext.data.DataWidget',array(
								'model' => 'CityRecommend',
								'criteria' => array(
						 			'condition' => 'type = :type',
						 			'params' => array(
						 				':type' => CityRecommend::TYPE_NATIVE
						 			),
									'order' => 'sort DESC',
									'limit' => 6,
								),
								'data' => array(
									'params' => array('service'=>'recommendnative'),
									'trigger' => 'trigger-native',
									'content' => 'content-native'
								),
								'view' => 'application.views.partials.public.li_city_recommend',
							))?>
					</ul>
					<div class='bh-clear'></div>
				</div>
				
				<div class='ttc-hot-item-w' id='content-native'>
					<?php /*$this->widget('lib.ext.data.DataWidget',array(
								'model' => 'Native',
								'criteria' => array(
									'scopes' => 'listing',
									'limit' => 4,
								),
								'view' => 'application.views.partials.platform.native.goods',
					))*/?>
				</div>
				
			</div>
			
		</div>
		
		<div class='ttc-part2-right bh-fr'>
			<div class='ttc-box'>
				<div class='ttc-box-w'><h2>土特产资讯<span></h2></div>
				<div class='bh-clear'></div>
				<div class='ttc-box-item-w'>
					<?php $this->widget('lib.ext.data.DataWidget',array(
						'model' => 'News',
						'criteria' => array(
							'condition' => 'cate_id = :type AND is_recommend = 1',
						 	'params' => array(
						 		':type' => CategoryInformation::TYPE_NATIVE
						 	),
							'limit' => 7,
						),
						'view' => 'application.views.partials.platform.native.news',
					))?>
					<div class='bh-clear'></div>
				</div>
			</div>
		</div>
		
		<div class='bh-clear'></div>
	</div>
	
	
</div></div>